package mer.merService.merServiceImp;

import mer.merDao.UserDao;
import mer.merModel.UserModel;
import mer.merService.UserService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by yijy on 2017/6/23.
 */
@Service
public class UserServiceImp implements UserService {
    private final Logger logger = LoggerFactory.getLogger(UserServiceImp.class);

    @Resource
    private UserDao userDao;

    @Override
    public void add(UserModel usermodel) {
        userDao.save(usermodel);
    }
}
